package com.isoft.farm.dao;

import com.isoft.farm.entity.SysUser;
import com.isoft.farm.entity.SysUserDeptVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserDao {

    int findSysUser(SysUser sysUser);
    int insertSysUser(SysUser sysUser);
    int getRowCount(String username);

    List<SysUserDeptVo> findPageObject(
            @Param("username") String username,
            @Param("startIndex") Integer startIndex,
            @Param("pageSize") Integer pageSize
    );

    int validById(@Param("id") Integer id,@Param("valid")Integer valid,@Param("modifiedUser")String modifiedUser);

    SysUserDeptVo findObjectById(Integer id);

    int updateObject(SysUser sysUser);
}
